package com.zhan.ielts.dao.impl;

import com.zhan.frame.core.dao.impl.BaseDaoImpl;
import com.zhan.ielts.dao.AdBundleDao;
import com.zhan.ielts.domain.AdBundle;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
public class AdBundleDaoImpl extends BaseDaoImpl<AdBundle> implements AdBundleDao {

	@Override
	public String getMaxAdBundleBytype(String type) {
		Map<String, Object> params = new HashMap<String,Object>();
		params.put("type", type);
		return sqlSessionTemplate.selectOne(getSqlName("getMaxAdBundleBytype"),params);
	}

}
